complete input output reasoning